/**
 * Created by wingsfrog on 2017/6/26.
 */
import {Injectable} from "@angular/core";
import {HttpUtils} from "../utils/http.utils";
import {USER} from "../service/user.service";
import {ParamsModel} from "../model/params.model";

@Injectable()
export class COMMENT {

  commentApi:string = '/comment';

  constructor(private api: HttpUtils,private USER:USER) {

  }

  comment(param:any,success:any){
    let pm = new ParamsModel(this.USER);
    pm.url = this.commentApi;
    pm.reqestData = param;
    pm.succCallback = success;
    this.api.post(pm);
  }

}
